package adv3;

public class StrTest {

	public static void main(String[] args) {
		String s1 = "abc";
		String s2 = "abc";
		String s3 = new String("abc");
		System.out.println(s1 == s2);
		System.out.println(s1 == s3);
		System.out.println(">>>>>>>>>>>>>>>>>>>>");
		byte[] b = { 65, 66, 67, 97 };
		String s4 = new String(b);
		System.out.println("s4=" + s4);
		char[] c = { 'w', '刘', '猫' };
		String s5 = new String(c);
		System.out.println("s5=" + s5);
	}
}
